package args

// 日志配置

type ILog struct {
	Dir    string `yaml:"Dir"`    // 存储目录
	Level  string `yaml:"Level"`  // 记录级别 debug|info|warn|error
	Target string `yaml:"Target"` // 输出方式 both|file|null|stdout|stderr
}

var Log = &ILog{
	Dir:    "logs",
	Level:  "info",
	Target: "stdout",
}

// 微信 配置
type IWeChat struct {
	Groups []string `yaml:"groups"` //监听某个群组的消息
}

var WeChat = &IWeChat{
	Groups: []string{},
}

// deepseek ai大模型
type IDeepSeek struct {
	Url    string `yaml:"url"`
	Method string `yaml:"method"`
	ApiKey string `yaml:"apiKey"`
	Model  string `yaml:"model"`
}

var DeepSeek = &IDeepSeek{
	Url:    "https://api.deepseek.com/chat/completions",
	Method: "POST",
	ApiKey: "sk-94dd0a933fa54ef8bf0979399707c66e",
	Model:  "deepseek-chat",
}

// KiMi ai大模型
type IKiMi struct {
	Url         string  `yaml:"url"`
	Method      string  `yaml:"method"`
	ApiKey      string  `yaml:"apiKey"`
	Model       string  `yaml:"model"`
	Temperature float64 `yaml:"temperature"`
}

var KiMi = &IKiMi{
	Url:         "https://api.moonshot.cn/v1/chat/completions",
	Method:      "POST",
	ApiKey:      "sk-CAlHGgzpCzUoQRzVMpF22YI4buXjayjyaAwhESSItitMJk0Y",
	Model:       "moonshot-v1-8k",
	Temperature: 0.3,
}

// Web 服务

type IWeb struct {
	Port    string `yaml:"port"`    // Web 端口
	Swagger bool   `yaml:"swagger"` // 是否启用 Api 文档
}

var Web = &IWeb{
	Port:    "127.0.0.1:7777",
	Swagger: true,
}
